package com.zemo.base.common.enums;

/**
 * @ClassName: ErrorCodeEnum
 * @author: SuperZemo
 * @email: zemochen@gmail.com
 * @Date 13/01/2018 14:07
 * @Description 异常状态码及通用方法定义。采用16进制(个人资产,0100-01FF)
 */
public enum ErrorCodeEnum implements ErrorCodeDef {
    INVALID_PARAM("0001", "参数错误- %s"),
    INTERNAL_FAIL("00ff", "内部系统错误"),
    RPC_ERROR("000B","RPC调用异常"),

    DUPLICATED_TRANSACTION("0101","请勿重复操作"),
    TARGET_NOT_FOUND("0104","数据不存在"),
    PAY_WAY_FORBIDDEN("0109", "渠道不支持"),

    BALANCE_REQUEST_ERROR("0112","余额请求错误"),
    BALANCE_PAY_FAIL("0113","余额支付失败"),

    WUMART_REQUEST_ERROR("0122","美通卡请求错误"),
    WUMART_PAY_FAIL("0123","美通卡支付失败"),

    XIN_BAI_REQUEST_ERROR("0132","新百卡请求错误"),
    XIN_BAI_PAY_FAIL("0133","新百卡支付失败"),
    ;

    private String code;
    private String msg;

    ErrorCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public Integer getSystemCode() {
        return null;
    }

}
